/**
 * Configures the Workspace Selector form
 */
function init (settings) {
	
	form.fields ("bm_source_ts").change (function () {
		var field = form.fields ("bm_source_ws"). empty();
		SourceTeamSite = new TeamSite ($(this).val ());
		for (SourceWS in SourceTeamSite.Workspaces) {
			$("<option></option>").text (SourceWS.title).appendTo (field);
		}
	});
	
	form.fields ("bm_dest_ts").change (function () {
		var field = $("bm_dest_ws").empty ();
		DestinationTeamSite = new TeamSite ($(this).val ());
		for (SourceWS in SourceTeamSite.Workspaces) {
			$("<option></option>").text (SourceWS.title).appendTo (field);
		}
	});

}